package com.chia.multienty.core.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.chia.multienty.core.pojo.KutaBaseEntity;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 租户支付日志
 * </p>
 *
 * @author Multi Tenant Auto Generator
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mt_tenant_pay_log")
@ApiModel(value="TenantPayLog对象", description="租户支付日志")
public class TenantPayLog extends KutaBaseEntity {


    /**
     * 支付日志编号
     */
    @ApiModelProperty(value = "支付日志编号")
    @TableId(value = "log_id", type = IdType.INPUT)
    private Long logId;

    /**
     * 租户编号
     */
    @ApiModelProperty(value = "租户编号")
    @TableField("`tenant_id`")
    private Long tenantId;

    /**
     * 交易编号
     */
    @ApiModelProperty(value = "交易编号")
    @TableField("`trade_id`")
    private Long tradeId;

    /**
     * 应用编号
     */
    @ApiModelProperty(value = "应用编号")
    @TableField("`program_id`")
    private Long programId;

    /**
     * 支付金额
     */
    @ApiModelProperty(value = "支付金额")
    @TableField("`amount`")
    private BigDecimal amount;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    @TableField("`describe`")
    private String describe;

    /**
     * 付款方备注
     */
    @ApiModelProperty(value = "付款方备注")
    @TableField("`payer_remark`")
    private String payerRemark;

    /**
     * 收款方备注
     */
    @ApiModelProperty(value = "收款方备注")
    @TableField("`payee_remark`")
    private String payeeRemark;

    /**
     * 内部交易号码
     */
    @ApiModelProperty(value = "内部交易号码")
    @TableField("`outer_trade_no`")
    private String outerTradeNo;

    /**
     * 外部交易编号
     */
    @ApiModelProperty(value = "外部交易编号")
    @TableField("`third_trade_no`")
    private String thirdTradeNo;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField(value = "`status`", fill = FieldFill.INSERT)
    private String status;

    /**
     * 乐观锁版本号
     */
    @ApiModelProperty(value = "乐观锁版本号")
    @TableField(value = "`version`", fill = FieldFill.INSERT)
    @Version
    private Long version;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "`create_time`", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "`update_time`", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}
